﻿using System;
using Microsoft.SharePoint.WebControls;

namespace SPWarmUp.Library.Web
{
    public class TypedLayoutsPage<TController> : LayoutsPageBase
    {
        public TController Controller { get; set; }

        public TypedLayoutsPage()
        {
            Controller = WarmUpServiceLocator.GetType<TController>();
        }

        public TypedLayoutsPage(TController controller)
        {
            Controller = controller;
        }
    }
}
